﻿cmake_minimum_required(VERSION 3.14)

project(gRPC_Server_TS LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include($ENV{gRPC_DIR}/gRPCcommon.cmake)
include_directories(${CMAKE_BINARY_DIR}/protocCompiledFiles)

file(GLOB SourceFiles ${SourceFiles})
add_executable(${PROJECT_NAME}
        ${SourceFiles}
)

INSTALL(TARGETS ${PROJECT_NAME}
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION libstatic
)

target_link_libraries(${PROJECT_NAME} PRIVATE
        gRPCController
        ${gRPCAllLibs}
)

#设置exe名字
#set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "gRPC_Server_TS")
